<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>浏览器</title>

    <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/yzl.css"/>

    <style>
        .browser-close {
            display: inline-block;
            position: absolute;
            width: 30px;
            height: 45px;
            top: 15px;
            left: 40px;
            background-size: 17px 17px;
            background-position: left;
            background-repeat:no-repeat;
        }

        .browser-close.big {
            background-image: url(../../image/big/btn_close_white.png);
        }

        .browser-close.small {
            background-image: url(../../image/small/btn_close_white.png);
        }

        .browser-title {
            margin: 0 60px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    </style>

</head>
<body>
<div class="header" id="app">
		<div id="back"  style="width:30px;" :class="BSImg" v-back.tapmode class="back"></div>
    <div  class="title browser-title">帮助</div>
</div>
</body>
<script src="../../script/api.js"></script>
<script src="../../script/vue.js"></script>
<script src="../../script/app.js"></script>
<script src="../../script/common.js"></script>
<script src="../../script/url.js"></script>
<script>

    var webBrowser,
        url,
        goods_id,
        goods_info = '',
        vm;

    apiready = function () {
        setBSImg();
        var back = document.getElementById('back');
        var browserClose = document.getElementById('browser-close');
        setTapmode([back, browserClose]);
        webBrowser = api.require('webViewModule');
        initApp();
        // initApp();
        openWeb();
        api.parseTapmode();
    };

    function initApp() {
        vm = new Vue({
            el: '#app',
            data: {
                changeTime: 0,
                BSImg: {
                    big: Vue.BSImg == 'big',
                    small: Vue.BSImg == 'small'
                },
            },
            methods: {
    },
        });
    }

    function back() {
        webBrowser.historyBack(function (ret) {
            if (!ret.status) {
                closeWin();
            }
        });
    }

    function openWeb() {
      api.openFrame({
        name : 'helper',
        url : 'http://www.lawei-tech.com',
        bgColor : 'f7f7f7',
        rect : {
          x: 0,
          y: 60,
          w: api.winWidth,
          h: api.winHeight - 60
        },
        hScrollBarEnabled : false,
        vScrollBarEnabled : false,
        pageParam : {
        }
      });
    }

</script>
</html>
